import 'package:plugin_platform_interface/plugin_platform_interface.dart';

import 'ios_photo_library_permission_method_channel.dart';

abstract class IosPhotoLibraryPermissionPlatform extends PlatformInterface {
  /// Constructs a IosPhotoLibraryPermissionPlatform.
  IosPhotoLibraryPermissionPlatform() : super(token: _token);

  static final Object _token = Object();

  static IosPhotoLibraryPermissionPlatform _instance = MethodChannelIosPhotoLibraryPermission();

  /// The default instance of [IosPhotoLibraryPermissionPlatform] to use.
  ///
  /// Defaults to [MethodChannelIosPhotoLibraryPermission].
  static IosPhotoLibraryPermissionPlatform get instance => _instance;

  /// Platform-specific implementations should set this with their own
  /// platform-specific class that extends [IosPhotoLibraryPermissionPlatform] when
  /// they register themselves.
  static set instance(IosPhotoLibraryPermissionPlatform instance) {
    PlatformInterface.verifyToken(instance, _token);
    _instance = instance;
  }

  Future<int> getPhotoLibraryPermission() {
    throw UnimplementedError(
        'getPhotoLibraryPermission() has not been implemented.');
  }

  Future<bool> requestPhotoLibraryPermission() {
    throw UnimplementedError(
        'requestPhotoLibraryPermission() has not been implemented.');
  }
}
